package com.example.makerspace.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@TableName(value = "t_message")
@Data
@Document(indexName = "t_message")
public class MessageDO  extends BaseDO{
    @Field(name = "content", type = FieldType.Text, analyzer="ik_max_word")
    private  String content;
    @Field(name = "title", type = FieldType.Text, analyzer="ik_max_word")
    private  String title;
    @Field(name = "username", type = FieldType.Text, analyzer="ik_max_word")
    private  String username;
    @Field(name = "type", type = FieldType.Text, analyzer="ik_max_word")
    private  Integer type;
    @Field(name = "is_read", type = FieldType.Text, analyzer="ik_max_word")
    private  Integer isRead;
}
